package cn.hyh.core.component;

import cn.hyh.core.pojo.Dics;
import cn.hyh.core.service.ServiceInterface.DicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @auther :hyh
 * @desc :   实现了该接口的方法 会在应用启动后自动的执行。
 * @date :2019/7/22
 */
//@Component
@Deprecated  //2021-09-11 废弃缓存。
public class ExecuteOnStart implements ApplicationRunner {
     @Autowired
    private DicService dicService;
    @Override
    public void run(ApplicationArguments args) throws Exception {
//        Map<String, List<Dics>> groupMap = dicService.selectGroup();
//        dicService.configMap.put("dic", groupMap);
    }
}
